{layout name="common/layout" /}

<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<style>
    .main_area{
        width:100%;
        height:100%;
        position: relative;
        bottom:0;
        overflow: auto;
    }
    .post_form{
        box-sizing:unset;
        padding: 15px 50px;
        margin: -10px auto;
    }
    .red_must{
        color: red;
        padding-right: 5px;
    }
    .sub_title{
        position: relative;
        float: left;
        width: 120px;
    }
    .editer{
        margin-left: 0px;
    }
    .sub_body{

    }
    /*按钮*/
    .btn_area{
        width: 45%;
        position: relative;
        margin: 40px auto;
    }
    input {
        font-size: 14px;
        color: #222;
        margin: -5px 0 0 10px;
        outline: none;
        border: none;
    }
</style>

<div class="Hui-article-box">
    <div class="Hui-article" style="top:0px;">
        <h3 class="showlist_title">活动>平台活动详情</h3>

        <div class="main_area">
            <div style="position: relative;width:100%;">
                <div class="lab cl">
                    <div class="lab-l">
                        <span class="span"><label class="red_must">&nbsp;</label>活动</span>
                    </div>
                    <div class="lab-r" style="border:0;margin-top: 8px;">
                        {$join_activity['act_name']}
                    </div>
                </div>
                <div class="lab cl">
                    <div class="lab-l">
                        <span class="span"><label class="red_must">&nbsp;</label>折扣</span>
                    </div>
                    <div class="lab-r" style="border:0;margin-top: 8px;">
                        {$join_activity['market_rate']}%
                    </div>
                </div>
                <div class="lab cl">
                    <div class="lab-l">
                        <span class="span"><label class="red_must">&nbsp;</label>报名类型</span>
                    </div>
                    <div class="lab-r" style="border:0;margin-top: 8px;">
                        {if condition="$join_activity['join_type'] eq '1'"}商品报名(每个店铺至少报名{$join_activity['join_num']}个商品){else/}店铺报名{/if}
                    </div>
                </div>
                <div class="lab cl">
                    <div class="lab-l">
                        <span class="span"><label class="red_must">&nbsp;</label>报名状态</span>
                    </div>
                    <div class="lab-r" style="border:0;margin-top: 8px;">
                        {if condition="$is_join eq '1'"}已报名{else/}未报名{/if}
                    </div>
                </div>
                {if condition="$is_join eq '1' && $is_store_selfrate gt '1'"}
                <div class="lab cl">
                    <div class="lab-l">
                        <span class="span"><label class="red_must">&nbsp;</label>商家折扣</span>
                    </div>
                    <div class="lab-r" style="border:0;margin-top: 8px;">
                        {$is_store_selfrate}%
                    </div>
                </div>
                {/if}
                <div class="lab cl goods_list">
                    <div class="lab-l">
                        <span class="span"><label class="red_must">&nbsp;</label>活动商品</span>
                    </div>
                    <div class="lab-r" style="border:0;margin-top: 10px;">
                        <div style="margin-top: 0px;"><label>(注:同一商品只能参加一个活动，添加成功后默认取消其他活动)</label></div>
                        <div class="sel_goods_show" style="width:400px;height:200px;overflow:auto;margin-top: 20px; ">
                            <ul class="sel_goods_area">
                                {if condition="$is_join eq '1'"}
                                {foreach($goodslist as $k => $v)}
                                <li>
                                    <img src="{$v['goods_main_pic']}" style="width:40px;height:40px;margin-right: 10px;"/>{$v['goods_name']}
                                </li>
                                {/foreach}
                                {/if}
                            </ul>
                        </div>
                    </div>
                </div>
                <div  class="div-box btn_area">
                    <input type="button" class="btn close_btn" style="margin-left: 30px;" value="返回"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/javascript">
    $(".close_btn").click(function(){
        window.location.href ="{:url('activity/listPingTaiActivity')}?page={$page}";
    });
</script>